package cn.yitun.chat.yitunservercommonlib.converter.ot;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.room.RoomChatContentDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.room.RoomChatLogDto;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * rootchatlogdto 2 roomchatcontentDto
 */
@Mapper(componentModel = "spring")
public interface RoomChat2ContentConverter {

    RoomChat2ContentConverter INSTANCE = Mappers.getMapper(RoomChat2ContentConverter.class);

    RoomChatLogDto content2dto(RoomChatContentDto dto);

    List<RoomChatLogDto> content2dto(List<RoomChatContentDto> dtoList);

    @InheritInverseConfiguration
    RoomChatContentDto dto2content(RoomChatLogDto dto);
    @InheritInverseConfiguration
    List<RoomChatContentDto> dto2content(List<RoomChatLogDto> dtoList);
}
